package com.freeland.client2009.dao.ibatis;

import java.util.List;

import com.freeland.client2009.dao.ibatis.model.AdState;
import com.freeland.client2009.dao.ibatis.model.ComputerMac;
import com.freeland.client2009.dao.ibatis.model.ComputerPowerInfo;
import com.freeland.client2009.dao.ibatis.model.NetBarInfo;

/**
 * 酒店电脑
 * @author zhangsc
 *  create in 2010-12-1
 */
public interface HotelComputerDAO {

	/**
	 * 删除酒店的mac
	 * @param mac
	 */
	 public int deleteHotelMac(ComputerMac mac);
	 
	 public int updateHotelMac(String useracct,String orignMac,String newMac);
	 /**
	  * 获取酒店电脑使用的记录
	  * @param pageIndex
	  * @param pageSize
	  * @param userType
	  * @param userId
	  * @param startDate
	  * @param endDate
	  * @return
	  */
	public List<ComputerPowerInfo>  getComputerUseLogPage(int pageIndex,int pageSize,String userType,String useracct,String username,String startDate,String endDate,int minute);
	public Long  getComputerUseLogCount(String userType,String useracct,String username,String startDate,String endDate,int minute);

	/**
	 * 获取广告点击记录
	 * @param pageIndex
	 * @param pageSize
	 * @param userType
	 * @param userId
	 * @return
	 */
	public List<AdState>  getAdStatePage(int pageIndex,int pageSize,String userType,String useracct,String username);
	public Long  getAdStateCount(String userType,String useracct,String username);
	/**
	 * 获取酒店电脑的mac记录
	 * @param pageIndex
	 * @param pageSize
	 * @param userType
	 * @param userId
	 * @return
	 */
	public List<ComputerMac>  getComputerMacPage(int pageIndex,int pageSize,String userType,String useracct,String username);
	public Long  getComputerMacCount(String userType,String useracct,String username);
	/**
	 * 获取酒店服务器的信息
	 * @param pageIndex
	 * @param pageSize
	 * @param userType
	 * @param userId
	 * @return
	 */
	public List<NetBarInfo>  getNetBarInfoPage(int pageIndex,int pageSize,String userType,String useracct,String username);
	
	public Long getNetBarInfoCount(	String userType, String useracct,String username);
	
}
